﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZSZ.Common;
using static ZSZ.Common.CommonHelper;

namespace TestSendEmail
{
    class Program
    {
        static void Main(string[] args)
        {
            //CommonHelper.SendEmail("1534688571@qq.com","邮件发送测试","邮件内容");
            //Console.WriteLine("ok");
            //首先实例化验证码的类  
            ValidateCode validateCode = new ValidateCode();
            //生成验证码指定的长度  
            string code = validateCode.GetRandomString(4);

            Console.WriteLine(code);

            code = validateCode.GetRandomString(8);
            Console.WriteLine(code);

            Console.ReadKey();
        }
    }
}
